/*
 * WalkState.h
 *
 *  Created on: 17/01/2011
 *      Author: Nenem
 */

#ifndef WALKSTATE_H_
#define WALKSTATE_H_

#include "State.h"
#include "GameObject.h"

class WalkState : public State<GameObject>{
public:
	void Enter(int delta, int time, GameObject *obj, Scenery *, Graphics*);
	void Execute(int delta, int time, GameObject *obj, Scenery *, Graphics*);
	void Exit(int delta, int time, GameObject *obj, Scenery *, Graphics*);
	WalkState();
	virtual ~WalkState();
	bool tryTalk(int delta, int time, GameObject *obj, Scenery *scenery, Graphics *graphics);
	bool tryHitted(int delta, int time, GameObject *obj, Scenery *scenery, Graphics *graphics);
	bool tryAttack(int delta, int time, GameObject *obj, Scenery *scenery, Graphics *graphics);
	bool tryListen(int delta, int time, GameObject *obj, Scenery *scenery, Graphics *graphics);
	bool tryRun(int delta, int time, GameObject *obj, Scenery *scenery, Graphics *graphics);
	bool tryIdle(int delta, int time, GameObject *obj, Scenery *scenery, Graphics *graphics);
	void terrain(int delta, int time, GameObject *obj, Scenery *scenery, Graphics *graphics);
};

#endif /* WALKSTATE_H_ */
